package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.Login;
import com.example.mall.domain.UserMemberships;
import com.example.mall.dto.UserMembershipsDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.UserMembershipsQuery;

import java.util.List;


/**
 * <p>
 * 用户会员表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-09
 */
public interface IUserMembershipsService extends IService<UserMemberships> {

    //分页查询用户会员表信息
    PageDTO<UserMembershipsDto> queryPage(UserMembershipsQuery userMembershipsQuery);

    //根据id查询用户会员表信息
    UserMemberships queryUserMembershipsById(Long membershipId);

    //查询所有用户会员表信息
    List<UserMemberships> queryUserMembershipsList();

    //新增用户会员表
    void insert(UserMembershipsDto userMembershipsDto);

    //修改用户会员表信息
    void update(UserMembershipsDto userMembershipsDto);

    //删除用户会员表信息
    void delete(Long membershipId);

    //批量删除用户会员表信息
    void deleteBatch(List<Long> membershipIds);
}
